<?php 
require_once (__DIR__ . "/../../models/Keywords.php");
$results = Keywords::GetAll();

?>
				<a href="<?= "$rootUrl/../W/Keywords/create"?>"><b>Add...</b></a>
				<table class="table table-bordered table-condensed table-hover table-striped">
					<tr>
						<th>Name</th><th>Parent</th><th>Actions</th>
					</tr>
					
					<?php while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?php echo $row['name']; ?></td> <td><?php echo Keywords::GetName($row['parent_id']);?> </td>
							<td>
								<a href="<?= "$rootUrl/../W/Keywords/details/$row[id]"?>">Details</a>
								<a href="<?= "$rootUrl/../W/Keywords/edit/$row[id]"?>">Edit</a>
								<a href="<?= "$rootUrl/../W/Keywords/delete/$row[id]"?>">Delete</a>
							</td>					
						</tr>
					<?php endwhile; ?>
					
				</table>